package com.framework.shs.commom.util;

import java.util.ArrayList;
import java.util.List;

import org.springframework.ui.Model;

/**
 * @author baoyt 回显24个大写英文字母
 * 
 */
public class InitialsUtils {

	private static final String LETTERLIST = "letterList";

	/**
	 * 设置遍历的24个字母,并且放在model
	 */
	public static void setChars(Model model) {
		List<Character> letterList = new ArrayList<Character>();
		for (int i = 65; i < 91; i++) {
			char letter = (char) i;
			letterList.add(letter);
		}
		model.addAttribute(LETTERLIST, letterList);
	}
}
